package com.SinaMicrobloggingApi.Core.Response;

import java.lang.reflect.Type;
import java.util.List;

import com.SinaMicrobloggingApi.Model.StatusModel;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

public class FriendTimeLineResponse extends ResponseBase {
	private List<StatusModel> status;

	public List<StatusModel> getStatus() {
		return status;
	}

	public void setStatus(List<StatusModel> status) {
		this.status = status;
	}

	public void ParseResult(String result) {
		// TODO Auto-generated method stub
		super.ParseResult(result);
		if (this.errorModel == null) {
			Gson gson = new Gson();
			Type listType = new TypeToken<List<StatusModel>>() {
			}.getType();

			status = gson.fromJson(result, listType);
		}
	}
}
